const SERVICE = require("../../lib/js/service.js");

Page({
  data:{
    userInfo:wx.getStorageSync("userInfo"),
    imgSrc:SERVICE.imgUrl
  },
  onLoad(){
   
  },

  onShow(){
    let _this = this;
    wx.showNavigationBarLoading();
    SERVICE.POST(SERVICE.URL.myRecruitmentList, {
      thirdCookie: wx.getStorageSync("thirdCookie")
    }, (status, res) => {
      console.log("获取招聘列表：", res);
      wx.hideNavigationBarLoading();
      if (res.data.status == "success") {
        _this.setData({
          myRecruitmentList: res.data
        });
      } else {
        wx.showToast({
          title: "获取招聘列表失败",
          icon: "none",
          mask: true
        });
      }
    });
  },

  /*分享*/ 
  onShareAppMessage(){}
});